package com.ruoyi.manage.enterprise.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruoyi.common.utils.ListUtil;
import com.ruoyi.manage.enterprise.domain.EcEnterpriseFile;
import com.ruoyi.manage.enterprise.mapper.EcEnterpriseFileMapper;
import com.ruoyi.manage.enterprise.service.IEcEnterpriseFileService;
import org.springframework.stereotype.Service;


/**
 * 企业附件信息Service业务层处理
 *
 * @author ruoyi
 * @date 2025-08-17
 */
@Service
public class EcEnterpriseFileServiceImpl extends ServiceImpl<EcEnterpriseFileMapper, EcEnterpriseFile> implements IEcEnterpriseFileService{


    @Override
    public EcEnterpriseFile queryGetById(Long id){
        EcEnterpriseFile ecEnterpriseFile = this.getById(id);
        return ecEnterpriseFile;
    }

    /**
     * 新增企业附件信息
     *
     * @param ecEnterpriseFile 企业附件信息
     * @return 结果
     */
    @Override
    public boolean addEcEnterpriseFile(EcEnterpriseFile ecEnterpriseFile){
        boolean save =this.save(ecEnterpriseFile);
        return save;
    }

    /**
     * 修改企业附件信息
     *
     * @param ecEnterpriseFile 企业附件信息
     * @return 结果
     */
    @Override
    public boolean updateEcEnterpriseFile(EcEnterpriseFile ecEnterpriseFile){
        return this.updateById(ecEnterpriseFile);
    }

    /**
     * 批量删除企业附件信息
     *
     * @param ids 需要删除的企业附件信息主键
     * @return 结果
     */
    @Override
    public boolean deleteEcEnterpriseFileByIds(Long[] ids){
        return this.removeByIds(ListUtil.toList(ids));
    }

}
